/**
 * Created by hang on 14-5-11.
 */
var host = "";
$(document).ready(function(){
	host = "http://114.215.121.115/xipujewelWeb";

    setShopCartCount();
});
function saveAddress(){
    var name = $("#shopAddress_name").val();
    var cell = $("#shopAddress_cell").val();
    var cellphone = $("#shopAddress_cellphone").val();
    var address = $("#shopAddress_address").val();
    var remark = $("#shopAddress_remark").val();
    $.post(host + "/address/save",{filter_name:name,filter_cell:cell,
            filter_cellphone:cellphone,filter_address:address,filter_remark:remark},
        function (data) {
            alert(data);
            location.reload();
        });
}


function setShopCartCount(){
    $.post(host + "/ShopCart/getShopCartCount",function (data) {
        if (data != null) {
            $("#shopCartCount").text(data);
            $("#shopCartCount2").text(data);
        }
    });
}
